<form id="frm_add" method="post" accept-charset="utf-8" action="<?php print $active; ?>">
<div>
    <table style="margin: auto;">
        <tbody>
            <tr>
                <td><label for="name"><?php print lang('vt_tenphanloai'); ?></label></td>
                <td><input type="text" name="name" value="<?php print ( isset($pl) )? $pl->name : ''; ?>" class="itext ivalidate ui-widget-content ui-corner-all" /></td>
            </tr>
            <tr>
                <td colspan="2"><div id="error_name" class="error"></div></td>
            </tr>
            <tr>
                <td><label for="status"><?php print lang('vt_trangthai'); ?></label></td>
                <td>
                    <select name="status" class="itext ui-widget-content ui-corner-all">
                        <option value="1" <?php print ( isset($pl) && $pl->status == 1 ) ? 'selected="selected"':''; ?>><?php print lang('vt_tt_active'); ?></option>
                        <option value="2" <?php print ( isset($pl) && $pl->status == 2 ) ? 'selected="selected"':''; ?>><?php print lang('vt_tt_disable'); ?></option>
                        <?php if( isset($pl) && $pl->status == -1 ): ?>
                        <option value="-1" <?php print ( isset($pl) && $pl->status == -1 ) ? 'selected="selected"':''; ?>><?php print lang('vt_tt_delete'); ?></option>
                        <?php endif; ?>
                    </select>
                </td>
            </tr>
        </tbody>
    </table>
    <?php if( isset($pl) ): ?>
    <input type="hidden" name="id" value="<?php print $pl->id; ?>">
    <?php endif; ?>
</div>
</form>